﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace nr.Tombola.Windows.Player
{
    public partial class CardsCreateForm : Form
    {
        public string CardsName { get { return txtName.Text; } set { txtName.Text = value; } }
        public int CardsCount { get { return (int)txtCount.Value; } set { txtCount.Value = value; } }
        public bool CreateSeries { get { return chkSeries.Checked; } set { chkSeries.Checked = value; } }
        public bool ReorderNumbers { get { return chkReorderNumbers.Checked; } set { chkReorderNumbers.Checked = value; } }

        public CardsCreateForm()
        {
            InitializeComponent();
        }

        private void txtName_TextChanged(object sender, EventArgs e)
        {
            btnOk.Enabled = txtName.Text.Length > 0;
        }
    }
}
